Skip to content

Conversation

DarylStark
Copy link
Contributor

…s. Adding a device to a Virtual Chassis is a field for the device-model and should be done by updating the device (update_device).

netbox/dcim.py Outdated
:param kwargs: requests body dict
:return: bool True if successful otherwise raise UpdateException
"""
device_id = self.get_virtual_chassis(name=virtual_chassis_name)[0]['id']
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable name is device_id. Now I assume you would do a self.get_devices.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, you're right; I fixed it.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants